/*
 * Filename:    HcpmsWFDAOImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年10月29日
 */
package com.paic.mhis.hcpms.warning.intergration.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.warning.dto.PaginationQueryDTO;
import com.paic.mhis.hcpms.warning.dto.WarningGtasksDTO;
import com.paic.mhis.hcpms.warning.intergration.dao.WarningInfoDao;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("warningInfoDao")
public class WarningInfoDaoImpl extends BaseDAO implements WarningInfoDao {

	@Override
	public List<WarningGtasksDTO> getGtasks(PaginationQueryDTO condition) {
		// TODO Auto-generated method stub
		return (List<WarningGtasksDTO>) this._queryForList("warning.getGtasks", condition);
	}

	@Override
	public int getGtasksCount(Map<String, Object> condition) {
		// TODO Auto-generated method stub
		return this._getInt("warning.getGtasksCount", condition);
	}

	@Override
	public List<WarningGtasksDTO> getWarnList(PaginationQueryDTO condition) {
		// TODO Auto-generated method stub
		return (List<WarningGtasksDTO>) this._queryForList("warning.getWarntasks", condition);
	}

	@Override
	public int getWarnListCount(Map<String, Object> condition) {
		// TODO Auto-generated method stub
		return this._getInt("warning.getWarntasksCount", condition);
	}
}
